
export const PARAMS_INQUIRY = [
  {
    type: "input",
    field: "name",
    title: "项目名称",
    value: "",
    props: {placeholder:"请输入项目名称"}
  },
  {
    type:'el-button',
    field:'search',
    props:{
        type:'primary',
        icon:"el-icon-search"
    },
    children:['搜索'],
    emit: ['click'],
    emitPrefix: 'btn-search'
  }
]


export const LABEL_INQUIRY = [
  { label: "采购单位", prop: "unitName",width:"",type:'normal'},
  { label: "项目名称", prop: "name",width:"",type:'normal'},
  { label: "采购单号", prop: "purchaseCode",width:"",type:'normal'},
  { label: "报价开始时间", prop: "startTime",width:"",type:'updateTime' },
  { label: "报价结束时间", prop: "endTime",width:"",type:'updateTime'},
  { label: "中标时间", prop:'winningTime',width:"",type:'updateTime'}
]

export const LABEL_INVITATION = [
  { label: "采购单位", prop: "unitName",width:"",type:'normal'},
  { label: "项目名称", prop: "name",width:"",type:'normal'},
  { label: "采购单号", prop: "purchaseCode",width:"",type:'normal'},
  { label: "报名开始时间", prop: "startTime",width:"",type:'updateTime' },
  { label: "报名结束时间", prop: "endTime",width:"",type:'updateTime'},
  { label: "中标时间", prop:'winningTime',width:"",type:'updateTime'}
]

export const LABEL_OVERT = [
  { label: "采购单位", prop: "unitName",width:"",type:'normal'},
  { label: "项目名称", prop: "name",width:"",type:'normal'},
  { label: "采购单号", prop: "purchaseCode",width:"",type:'normal'},
  { label: "报名开始时间", prop: "startTime",width:"",type:'updateTime' },
  { label: "报名结束时间", prop: "endTime",width:"",type:'updateTime'},
  { label: "中标时间", prop:'winningTime',width:"",type:'updateTime'}
]

export const LABEL_NOTICE = [
  { label: "采购单位", prop: "unitName",width:"",type:'normal'},
  { label: "项目名称", prop: "name",width:"",type:'normal'},
  { label: "采购单号", prop: "purchaseCode",width:"",type:'normal'},
  { label: "供应商", prop: "winningSupplierName",width:"",type:'winningSupplierName'},
  { label: "公示时间", prop:'winningTime',width:"",type:'updateTime'}
]
  
/* 注册供应商 */

export let FORM_SUPPLIER = [
  {
    type: "input",
    field: "name",
    title: "公司名称",
    value: "",
    props: { type: "text"},
    col: { span: 10 },
    validate: [
      { required: true, message: "请输入公司名称", trigger: "blur" }
    ]
  },
  {
    type: "input",
    field: "contactPerson",
    title: "联系人",
    value: "",
    props: { type: "text"},
    col: { span: 14 },
    validate: [
      { required: true, message: "请输入联系人", trigger: "blur" }
    ]
  },
  {
    type: "input",
    field: "contactPhone",
    title: "联系电话",
    value: "",
    props: { type: "text",maxlength:11},
    col: { span: 10 },
    validate: [
      { required: true, message: "请输入联系电话", trigger: "blur" },
      {
        validator: (rule, val, d) => {
          val && !/^1(3[0-9]|4[5,7]|5[0,1,2,3,5,6,7,8,9]|6[2,5,6,7]|7[0,1,7,8]|8[0-9]|9[1,8,9])\d{8}$/.test(val) ? d(true) : d();
        },
        message: "手机格式错误"
      }
    ]
  },
  {
    type: "input",
    field: "files",
    title: "企业相关资质（包含资质证书、安全生产许可证、开户许可证、法人身份证、委托代理人身份证）",
    value: "",
    col: { span: 14 },
    props: { disabled:true,placeholder:"请上传企业相关资质"},
    validate: [
      { required: true, message: "请上传企业相关资质", trigger: "blur" }
    ],
    children: [
      {
           type:'el-button',
           props:{
              type:'primary',
          },
           children:['选择文件'],
           slot:'suffix',
           emit: ['click'],
          emitPrefix: 'btn-img'
      }
   ]
  },
  {
    type:'html',
    col: { span: 24},
    field:"customInfo",
    title:''
  },
  {
    type: "radio",
    field: "productType",
    title: "供应商类型",
    value: "1",
    options:[{value:"1",label:'物资供应商'},{value:"2",label:"劳务供应商"}],
    col: { span: 24 },
    props: { style:"width:100%"},
    validate: [
      { required: true, message: "请选择供应商类型", trigger: "blur" }
    ]
  },
  {
    type: "input",
    field: "remarks",
    title: "备注",
    value: "",
    col: { span: 24},
    props: { type: "textarea",rows:"4"}
  }
]


  export const OPTION_INLINE = {
    form: { labelWidth: "" ,inline: true,size:"small"},
    resetBtn: false,
    submitBtn: false
  }
  export const OPTION_BLOCK= {
    form: { labelWidth: "" ,size:"small"},
    row:{gutter: 20},
    resetBtn: false,
    submitBtn: false
  }
 



